﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Net;
using System.Text;
using System.Web.Script.Serialization;
using HtmlAgilityPack;
using FileSystemDatabase;
using Newtonsoft.Json.Linq;
using TomatoSynchronizer.Entities;
using Newtonsoft.Json;
using System.IO;

namespace TomatoSynchronizer.Store
{
	public interface IStore<T>
	{
		void PersistItems(List<T> items);
		void Truncate();
		void PersistItem(T item);
		bool MoveItem(string itemId,string folderId);
		bool DeleteItem(string itemId);
		T[] LoadItems();
		T LoadItem(string itemId);
		bool Contains(T item);
		List<T> GetItems();
		T GetItem(string itemId);
		bool UpdateItem(T item);
		string InsertItem(T item);
		Site site { get; set; }
	}
}
